<?php

use Illuminate\Database\Seeder;

use App\Models\ModuleModel;

class ModuleTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $input = [];
        $input[] = ['module_name' => '用户', 'module_name_en' => 'users',];
        $input[] = ['module_name' => '文章', 'module_name_en' => 'posts',];
        $input[] = ['module_name' => '链接', 'module_name_en' => 'links',];
        $input[] = ['module_name' => '教程', 'module_name_en' => 'tutorials',];
        $input[] = ['module_name' => '排行榜', 'module_name_en' => 'rankings',];
        $input[] = ['module_name' => '笑话', 'module_name_en' => 'jokes',];

        (new ModuleModel())->insert($input);
    }
}
